﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Emz.Core.Models
{
    public class Position : EntityBase<int>
    {
        [Required]
        [StringLength(20)]
        public string Code { get; set; }

        [StringLength(100)]
        public string Description { get; set; }

        public double Incentive { get; set; }
        public double Retirement { get; set; }
        public double UniformAllowance { get; set; }

        #region Relation
        public virtual ICollection<Employee> Employees { get; set; }
        public virtual ICollection<Sector> Sectors { get; set; }
        #endregion
        
    }
}
